<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示方式</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid red;
        }
        span{
            /* 行内元素不能修改宽高,如果必须修改宽高的话
            需要将元素改成其他显示方式(块级或者行内块) */
            width: 100px;
            height: 100px;
            border: 1px solid blue;
        }
        img{
            width: 100px;
            height: 100px;
        }
        a{
            width: 100px;
            height: 30px;
            /* 设置成块级元素 */
            display: block;
            background-color: #0aa1ed;
            text-align: center;
            /* 行高 */
            line-height: 30px;
            color: white;
            /* 去除下划线 */
            text-decoration: none;
            /* 设置圆角 */
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <a href="http://www.baidu.com">查看详情</a>
    <img src="../notos/img/image-20230818203113547.png" alt="">
    <img src="../notos/img/image-20230818203646593.png" alt="">
    <img src="../notos/img/image-20230818204152395.png" alt="">
    <div>div1</div>
    <div>div2</div>
    <div>div3</div>
    <span>span1</span>
    <span>span2</span>
    <span>span3</span>
</body>
</html>